<template>
	<view>
		<web-view :webview-styles="webviewStyles" :src="src"></web-view>
	</view>
</template>

<script>
	export default {
		props: {
			url: String
		},
		
		data() {
			return {
				webviewStyles: {
					progress: {
						color: '#FF3333'
					}
				}
			};
		},
		
		computed: {
			src() {
				return this.url ? decodeURIComponent(this.url) : ''
			}
		}
	}
</script>

<style lang="scss">

</style>
